//
//  MemberDetailCell.swift
//  物料商行
//
//  Created by HaoDong Hong on 2017/9/7.
//  Copyright © 2017年 HaoDong Hong. All rights reserved.
//

import UIKit

class MemberDetailCell: UITableViewCell {
    
    @IBOutlet weak var phoneLabel: UILabel!
    @IBOutlet weak var nameLabel: UILabel!
    @IBOutlet weak var bkView: UIView!

    override func awakeFromNib() {
        super.awakeFromNib()
        nameLabel.textColor = #colorLiteral(red: 0.937254902, green: 0.937254902, blue: 0.9568627451, alpha: 1)
        phoneLabel.textColor = #colorLiteral(red: 0.937254902, green: 0.937254902, blue: 0.9568627451, alpha: 1)
        bkView.layer.cornerRadius = 10.0
        bkView.backgroundColor = #colorLiteral(red: 0.370555222, green: 0.3705646992, blue: 0.3705595732, alpha: 1)
    }

    override func setHighlighted(_ highlighted: Bool, animated: Bool) {
        if highlighted {
            UIView.animate(withDuration: 1.0, animations: {
                self.bkView.backgroundColor = #colorLiteral(red: 0.2605174184, green: 0.2605243921, blue: 0.260520637, alpha: 1)
            })
        } else {
            UIView.animate(withDuration: 1.0, animations: {
                self.bkView.backgroundColor = #colorLiteral(red: 0.370555222, green: 0.3705646992, blue: 0.3705595732, alpha: 1)
            })
        }
    }
    
}
